﻿using System;

namespace chatGUI.exception.UserControls
{
    public enum textBoxBlankExceptionEnum
    {
        textBlank, //when the text of textBox is null
        twoPasswordNotEqual, //when two password is not equal
        passwordOutOfRange, //when password is out of range
        accountOutOfRange, //when account is out of range
        containSpecialCharacter //when password contain specail char
    }
    public class textBoxBlankException : Exception
    {
        private textBoxBlankExceptionEnum e;
        public textBoxBlankException(textBoxBlankExceptionEnum e)
        {
            this.e = e;
        }
        public textBoxBlankExceptionEnum getEnums()
        {
            return this.e;
        }
    }
}
